#include"Person.h"
#include"Date.h"
#include"Address.h"
#include<iostream>
#include<memory>

int main(){
    std::string name("Baron");
    Date dateOfBirth("2147","4","8");
    Address address("Fujian","Quanzhou","Shishi");
    std::shared_ptr<Person> pp(Person::create(name,dateOfBirth,address));
    std::cout << pp->name() << " " << pp->birthDate() << " " << pp->address() << std::endl;

}